
 
addEvent(window,"load",function(){
	$(".img-slide li").each(function(){
		var that=$(this);
		that.hoverDelay({
			hoverEvent:function(){
				$(this).siblings().animate({width:"95px"}).find("img").animate({left:"0px"});;
			    $(this).animate({width:"129px"}).find("img").animate({left:"-105px"});
		    },
        });
	});

	//主体部分
	$(".mx1 li").each(function(){
		var that=$(this);
		that.hoverDelay({
			hoverEvent:function(){
				$(this).parents(".main-heading").siblings(".main-body").find(".main-two").hide().css("opacity","0");
				$(".mx1 li").css({"border":"3px transparent solid","border-bottom":"3px #0798B9 solid"})
				$(this).css({"border":"3px #0798B9 solid","border-bottom":"3px #fff solid"});
				var classify=$(this).attr("classify");
				var target=document.getElementById(classify);
				$target=$(target);
				$(target).animate({opacity:"1"},1000).show();
			}
		});
	});
	$(".mx2 li").each(function(){
		var that=$(this);
		that.hoverDelay({
			hoverEvent:function(){
				$(this).parents(".main-heading").siblings(".main-body").find(".main-two").hide().css("opacity","0");
				$(".mx2 li").css({"border":"3px transparent solid","border-bottom":"3px #D39801 solid"})
				$(this).css({"border":"3px #D39801 solid","border-bottom":"3px #fff solid"});
				var classify=$(this).attr("classify");
				var target=document.getElementById(classify);
				$target=$(target);
				$(target).animate({opacity:"1"},1000).show();
			}
		});
	});
	$(".mx3 li").each(function(){
		var that=$(this);
		that.hoverDelay({
			hoverEvent:function(){
				$(this).parents(".main-heading").siblings(".main-body").find(".main-two").hide().css("opacity","0");
				$(".mx3 li").css({"border":"3px transparent solid","border-bottom":"3px #358335 solid"})
				$(this).css({"border":"3px #358335 solid","border-bottom":"3px #fff solid"});
				var classify=$(this).attr("classify");
				var target=document.getElementById(classify);
				$target=$(target);
				$(target).animate({opacity:"1"},1000).show();
			}
		});
	});
	$(".mx4 li").each(function(){
		var that=$(this);
		that.hoverDelay({
			hoverEvent:function(){
				$(this).parents(".main-heading").siblings(".main-body").find(".main-two").hide().css("opacity","0");
				$(".mx4 li").css({"border":"3px transparent solid","border-bottom":"3px #9968A6 solid"})
				$(this).css({"border":"3px #9968A6 solid","border-bottom":"3px #fff solid"});
				var classify=$(this).attr("classify");
				var target=document.getElementById(classify);
				$target=$(target);
				$(target).animate({opacity:"1"},1000).show();
			}
		});
	});
	$(".mx5 li").each(function(){
		var that=$(this);
		that.hoverDelay({
			hoverEvent:function(){
				$(this).parents(".main-heading").siblings(".main-body").find(".main-two").hide().css("opacity","0");
				$(".mx5 li").css({"border":"3px transparent solid","border-bottom":"3px #9E4E4E solid"})
				$(this).css({"border":"3px #9E4E4E solid","border-bottom":"3px #fff solid"});
				var classify=$(this).attr("classify");
				var target=document.getElementById(classify);
				$target=$(target);
				$(target).animate({opacity:"1"},1000).show();
			}
		});
	});
});